package route

import (
	"chart.zozoo.net/app/api/friendApi"
	"chart.zozoo.net/app/middle"
	"github.com/gin-gonic/gin"
)

// 好友管理相关路由
func routeFriend(r *gin.RouterGroup) {
	r.Use(middle.Auth())
	u := r.Group("/friend")
	//搜索好友
	u.GET("/search", friendApi.Search)
	//申请添加好友
	u.POST("/applyAdd", friendApi.ApplyAdd)
	//处理好友申请
	u.POST("/applyHandle", friendApi.ApplyHandle)
	//获取好友列表
	u.GET("", friendApi.List)
}
